#ifndef _COWSERVICE_LOGIN_H_
#define _COWSERVICE_LOGIN_H_

#include "xml.h"
#include "cowservice.h"

class CCowLoginRequest : public CCowCmd
{
public:

    CCowLoginRequest():CCowCmd("Login"){}
    virtual ~CCowLoginRequest(){}

    virtual bool ToNetPack(CXmlBlock& outblock);
    virtual bool LoadFromNetPack(CXmlBlock& inblock);

    string m_usertype;
    string m_userid;
    string m_password;
};

class CCowLoginResponse : public CCowCmd
{
public:

    CCowLoginResponse():CCowCmd("Login"){}
    virtual ~CCowLoginResponse(){}

    virtual bool ToNetPack(CXmlBlock& outblock);
    virtual bool LoadFromNetPack(CXmlBlock& inblock);

    string m_errid;
    string m_cowid;
};

class CCowsrvLogin : public CCowService
{
public:

    CCowsrvLogin(){}

    virtual ~CCowsrvLogin(){}

    virtual bool ToNetPack(CXmlBuffer& outbuf);
};

CREATE_SERVICE(Login);

#endif //_COWSERVICE_LOGIN_H_
